﻿#include "CImgShowDlg.h"
#include "cimagedownloader.h"
#include "CGlobal.h"
#include "Public.h"

CImgShowDlg::CImgShowDlg(QString sHttpUrl, QWidget *parent)
	: m_sHttpUrl(sHttpUrl),QDialog(parent)
{
	ui.setupUi(this);
	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
	this->setWindowTitle(A2T("查看图片"));
	// 获取 Qt 窗口的原生 HWND 句柄
	HWND hwnd = reinterpret_cast<HWND>(this->winId());
	setWindowsTitleBarColor(hwnd, RGB(56, 63, 81));
	CImageDownloader* pImageDownloader = new CImageDownloader(ui.label, m_sHttpUrl, this);
}

CImgShowDlg::~CImgShowDlg()
{}
